package com.cl.mybatis.learn.day06;

public enum Enabled {
    
    isClose(0, "关闭"),
    
    isOpen(1, "开启");
    
    private final int code;
    private final String name;
    
    private Enabled(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
